package com.xmb.wechat.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import io.objectbox.relation.ToMany;

/**
 * 朋友圈动态列表的item实体类
 * @Author lijiangop
 * @CreateTime 2020/5/9 17:51
 */

@Entity
public class PYQTrendsBean implements Serializable, MultiItemEntity {

    @Id
    private long                    id;
    private long                    senderId = -2;
    private String                  time;
    private boolean                 isShowLocation;
    private String                  locationCity;
    private String                  locationDetail;
    private String                  content;
    private ToMany<PYQPicBean>      pics;
    private String                  likes;
    private ToMany<PYQCommentsBean> comments;

    public PYQTrendsBean() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getSenderId() {
        return senderId;
    }

    public void setSenderId(long senderId) {
        this.senderId = senderId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public boolean isShowLocation() {
        return isShowLocation;
    }

    public void setShowLocation(boolean showLocation) {
        isShowLocation = showLocation;
    }

    public String getLocationCity() {
        return locationCity;
    }

    public void setLocationCity(String locationCity) {
        this.locationCity = locationCity;
    }

    public String getLocationDetail() {
        return locationDetail;
    }

    public void setLocationDetail(String locationDetail) {
        this.locationDetail = locationDetail;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ToMany<PYQPicBean> getPics() {
        return pics;
    }

    public void setPics(ToMany<PYQPicBean> pics) {
        this.pics = pics;
    }

    public String getLikes() {
        return likes;
    }

    public void setLikes(String likes) {
        this.likes = likes;
    }

    public ToMany<PYQCommentsBean> getComments() {
        return comments;
    }

    public void setComments(ToMany<PYQCommentsBean> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "PYQTrendsBean{" +
                "id=" + id +
                ", senderId=" + senderId +
                ", time='" + time + '\'' +
                ", isShowLocation=" + isShowLocation +
                ", locationCity='" + locationCity + '\'' +
                ", locationDetail='" + locationDetail + '\'' +
                ", content='" + content + '\'' +
                ", pics=" + pics +
                ", likes='" + likes + '\'' +
                ", comments=" + comments +
                '}';
    }

    @Override
    public int getItemType() {
        return 0;//目前只做一种类型的
    }
}
